#include "ImageUtil.h"
#include <functional>
#include <sstream>
#include <iomanip>

std::string ImageUtil::GenerateHash(std::string loadSrc, std::string signature) {
    std::string combined = loadSrc + signature;

    std::hash<std::string> hash_fn;
    size_t hash = hash_fn(combined);

    std::stringstream ss;
    ss << std::hex << std::setw(16) << std::setfill('0') << hash;
    return ss.str();
}
